
const state = {
    count:1
}

const mutations = {
    multiply(state) {
        state.count*2
    },
    divided (state){
        state.count/2
    }
}
 const actions = {
    multiply:({commit}) =>{
         commit("multiply")//对应mutations里面的multiply
     },
     divided :({commit}) =>{
        commit("divided ")//对应mutations里面的divided 
    }
 }
 export default {
    namespaced:true,
    state,
    mutations,
    actions
 }